/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f2f5;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 全局链接样式 */
a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 16px;
}

/* 覆盖Ant Design的一些默认样式 */
.ant-card {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.ant-card-head {
  border-bottom: 1px solid #f0f0f0;
  min-height: 48px;
}

.ant-list-item {
  padding: 12px 24px;
}

.ant-list-item-meta-title {
  margin-bottom: 4px;
}

.ant-layout-header {
  height: 56px;
  line-height: 56px;
}

/* 登录页样式 */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* 内容布局 */
.content-layout {
  padding: 24px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .ant-layout-sider {
    max-width: 120px !important;
    min-width: 120px !important;
    width: 120px !important;
  }
  
  .content-layout {
    padding: 12px;
  }
}
